import { service } from "../http/index";

// 管理端个案列表
export function getManagerCaseList(data) {
  return service({
    method: "get",
    url: "/api/teacher/getTeacherCaseList",
    params: data,
  });
}

// 危机个案干预详情
export function getDetail(data) {
  return service({
    method: "get",
    url: "/api/teacher/getDetail/" + data.appointmentId,
  });
}

// 获取训练列表
export function getPracticeList(data) {
  return service({
    method: "get",
    url: "/api/teacher/getPracticeList",
    params: data,
  });
}

// 危机咨询表单回显
export function getZXForm(data) {
  return service({
    method: "get",
    url: "/api/teacher/getZXForm/" + data.appointmentId,
  });
}

// 危机咨询保存
export function save(data) {
  return service({
    method: "post",
    url: "/api/teacher/save",
    data,
  });
}

export function assignPractice(data) {
  return service({
    method: "post",
    url: "/api/teacher/assignPractice",
    data,
  });
}
